import request from '@/utils/request';

export function listConfig(query) {
  return request({
    url: '/main/dataConf/list',
    method: 'get',
    params: query
  });
}

export function addConfig(data) {
  return request({
    url: '/main/dataConf/add',
    method: 'post',
    data: data
  })
}

export function putConfig(data) {
  return request({
    url: '/main/dataConf/edit',
    method: 'put',
    data: data
  })
}

export function removeConfig(id) {
  return request({
    url: '/main/dataConf/remove/'+id,
    method: 'delete'
  })
}
